package com.zwk.edu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zwk.edu.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * <p>
 * 评论 服务类
 * </p>
 *
 * @author zwk
 * @since 2022-08-31
 */
public interface CommentService extends IService<Comment> {

    // 接受前端传来的评论数据, 通过token获取用户数据
    Map<String, Object> saveComment(Comment comment, HttpServletRequest request);

    // 根据课程id查询评论信息
    Map<String, Object> getCommentPageList(String id, Page<Comment> page);
}
